package com.etone.smartAudit.vo.task;

import com.etone.smartAudit.enums.CheckState;
import com.etone.smartAudit.vo.FileVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author: sovy
 * @date: 2020/8/10
 * @description:
 */
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Data
@ApiModel(value = "TaskAuditRecord", description = "任务审核记录")
public class TaskAuditRecordVO implements Serializable {

    @ApiModelProperty("任务上一个状态")
    private CheckState lastState;

    @ApiModelProperty("审核状态")
    private CheckState state;

    @ApiModelProperty("操作id")
    private Integer auditAdminId;

    @ApiModelProperty("操作人名称")
    private String auditAdminName;

    @ApiModelProperty("操作时间")
    private Date createTime;

    @ApiModelProperty("原因|备注")
    private String remark;

    @ApiModelProperty("实际工时")
    private Double workTime;

    @ApiModelProperty("评分")
    private Double score;

    @ApiModelProperty("期望完成时间")
    private Date expectOverTime;

    @ApiModelProperty("附件")
    private FileVO file;

    @ApiModelProperty("执行人")
    private List<TaskExecVO> taskExecs;

    @ApiModelProperty("下一步执行人id")
    private Integer nextAdminId;

    @ApiModelProperty("下一步执行人名称")
    private String nextAdminName;

    @ApiModelProperty("是否完结")
    private Boolean isOver;

    @ApiModelProperty("扩展信息")
    private String extendInfo;
}
